<template>
  <div>
    <img :src="articledetail.pic" />
    <div v-html="articledetail.content"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      articledetail:[]
    }
  },
  mounted() {
    var id = this.$route.query.id
    this.$API.articledetail(id).then(res=>{
      console.log(res);
      this.articledetail = res.data.data
    })
  },
};
</script>

<style scoped>
img {
  width: 100%;
  height: 200px;
}
</style>